package cn.stylefeng.guns.modular.business.custom.enums;

public enum ExtraFeeType {

    PICK(1, "提车费"),
    EMPTY(2, "放空费"),
    FORKLIFT(3, "叉车费"),
    WASH(4, "洗车费"),
    PETROL(5, "加油费"),
    OTHER(6, "其他")
    ;

    public int type;
    public String desc;

    ExtraFeeType(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getValue(Integer type) {
        if (type == null) {
            return "";
        }
        ExtraFeeType[] pts = ExtraFeeType.values();
        for (ExtraFeeType pt : pts) {
            if (type == pt.type) {
                return pt.desc;
            }
        }
        return "";
    }
}
